/* Simple animations for heart rate calculator */

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Custom slider styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  background: #E5E7EB;
  height: 16px;
  border-radius: 9999px;
}

input[type="range"]::-moz-range-track {
  background: #E5E7EB;
  height: 16px;
  border-radius: 9999px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #3B82F6;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  margin-top: -8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

input[type="range"]::-moz-range-thumb {
  border: none;
  background: #3B82F6;
  height: 32px;
  width: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}

input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.1);
  background: #2563EB;
}

input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.1);
  background: #2563EB;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(0.95);
}

input[type="range"]:active::-moz-range-thumb {
  transform: scale(0.95);
}

/* Animation classes */
.animate-heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.4s ease-out;
}

/* Button press effect */
.button-press {
  transition: all 0.1s ease;
}

.button-press:active {
  transform: scale(0.95);
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}